/*
 *  fgfiltering.h
 *  opencvTest
 *
 *  Created by a1gucis on 3/6/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef FG_FILTERING
#define FG_FILTERING
#include "systeminclude.h"
class FgFiltering {
private:
	IplImage *chan1, *chan2, *chan3, *temp;
public:
	FgFiltering(int height, int width);
	~FgFiltering();
	void findConnectedComponents(IplImage* mask, int poly1_hull0 = 1, float perimScale  = 4, int* num = NULL, CvRect* bbs = NULL, CvPoint*  centers = NULL); 
	void segregateTrueForeground(IplImage *mask, IplImage *raw, IplImage *fg);
};


#endif


